package com.tunnel.home.timer;

import org.axe.annotation.ioc.Autowired;
import org.axe.extra.timer.TimerTask;

import com.tunnel.home.dao.PayLogDao;

/**
 * 刷新已过期的支付记录
 * 删除前天的过期支付记录
 */
public class PayLogTimer extends TimerTask{

	@Autowired
	private PayLogDao payLogDao;
	
	@Override
	public String name() {
		return "PayLogTimer";
	}

	@Override
	public int timeSec() {
		return 60;//每60秒执行一次
	}

	@Override
	public void doSomething() {
		payLogDao.refreshStatus();
	}
}
